package hibari.client.model;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;

@PersistenceCapable
public class Week implements IsSerializable {
	private boolean alive = true;
	private Date date;
	private Long iconId;
	private Long imageId;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long key;

	private Long music1;

	private Long music2;

	private Integer weekNumber = 0;

	private String backgroundColor = "ffffff";

	public String getBackgroundColor() {
		return this.backgroundColor;
	}

	public void setBackgroundColor(String backgroundColor) {
		this.backgroundColor = backgroundColor;
	}

	public Week() {
		this.date = new Date();
	}

	public Date getDate() {
		return this.date;
	}

	public Long getIconId() {
		return this.iconId;
	}

	public Long getImageId() {
		return this.imageId;
	}

	public Long getKey() {
		return this.key;
	}

	public Long getMusic1() {
		return this.music1;
	}

	public Long getMusic2() {
		return this.music2;
	}

	public Integer getWeekNumber() {
		return this.weekNumber;
	}

	public boolean isAlive() {
		return this.alive;
	}

	public void setAlive(boolean alive) {
		this.alive = alive;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public void setIconId(Long iconId) {
		this.iconId = iconId;
	}

	public void setImageId(Long imageId) {
		this.imageId = imageId;
	}

	public void setMusic1(Long music1) {
		this.music1 = music1;
	}

	public void setMusic2(Long music2) {
		this.music2 = music2;
	}

	public void setWeekNumber(Integer weekNumber) {
		this.weekNumber = weekNumber;
	}
}
